//
//  NSObject+Addtions.h
//  Backhome
//
//  Created by kwep_vbn on 2017/6/23.
//  Copyright © 2017年 SmartHome. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^RepeatCallbackType)(void);

@interface NSObject (KNAddtions)

@property (strong, nonatomic) NSTimer *KNTimer;

@property (nonatomic,copy) RepeatCallbackType KNRepeatAction;

- (void)KNRepeatActionWithTimeInterval:(NSTimeInterval)interval callbackAction:(RepeatCallbackType)callback;

- (void)KNCancelRepeat;

@end
